# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-terminal
pkgver=0.8.9.2
pkgrel=0
pkgdesc="A modern terminal emulator primarly for the Xfce desktop environment"
url="https://xfce.org/projects/terminal/"
arch="all"
license="GPL-2.0-or-later"
depends="startup-notification hicolor-icon-theme"
makedepends="exo-dev vte3-dev libxfce4ui-dev pcre2-dev"
replaces="terminal"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/apps/xfce4-terminal/${pkgver%.*.*}/xfce4-terminal-$pkgver.tar.bz2"

build() {
	LIBS="-lintl" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1402d913bcc0c050b6c83405c754cdec71cf9bb56e2e68e4396d7ce48bec6e1b0cc875ea3ea2f7a0dff8280d306519fd74a8f9d9ebca383a8f295991cb9ddd94  xfce4-terminal-0.8.9.2.tar.bz2"
